package com.zoro.dyformservice.support.response;

import com.zoro.dyformservice.constants.response.ResponseStatus;

public class ResponseEntity<T> {
    private final ResponseStatus status;
    private String msg;
    private String detail;
    private T data;

    private int current = -1;
    private long total = -1;

    public ResponseEntity(ResponseStatus status) {
        this.status = status;
        this.msg = this.status.msg;
    }

    public int getStatus() {
        return status.status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }
}
